<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateChargeRecordTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('charge_record', function(Blueprint $table)
        {
            //充值记录
            $table->increments('id');
            $table->integer('user_id')      ->default(0)    ->comment('用户id');
            $table->string('phone')         ->nullable()    ->comment('用户手机号');
            $table->decimal('charge_money') ->default(0)    ->comment('充值金额');
            $table->string('remark')        ->nullable()   ->comment('备注');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
